//
//  ZHBaseViewController.m
//  EHP
//
//  Created by Teresa on 2020/5/19.
//  Copyright © 2020 锦尚宏. All rights reserved.
//

#import "THBaseViewController.h"

@interface THBaseViewController ()

@end

@implementation THBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [self backBtnSetting];
}

-(void)backBtnSetting{
    [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@"NavBack"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
                                                                style:UIBarButtonItemStylePlain target:self action:@selector(navBackBtnClicked)];
    [self.navigationItem setLeftBarButtonItem:backItem];
}

-(void)navBackBtnClicked{
    [self.navigationController popViewControllerAnimated:YES];
}

//- (void)configNavTransparentize:(BOOL)transparentize{
//    if (transparentize) {
//
//        [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
//        [self.navigationController.navigationBar setShadowImage:[UIImage new]];
//        [self.navigationController.navigationBar navBarBackGroundColor:[UIColor clearColor] image:nil isOpaque:YES];
//        self.navigationController.navigationBar.tintColor = UIColor.darkTextColor;
//    }else{
//        [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
//        [self.navigationController.navigationBar setShadowImage:nil];
//        [self.navigationController.navigationBar navBarBackGroundColor:[UIColor whiteColor] image:nil isOpaque:NO];
//        self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
//    }
//}

@end
